<template>
  <el-pagination style="justify-content: end; margin-top: 20px" :total="total" :page-size="limit"
    @current-change="pageChange" background layout="prev, pager, next" />
</template>

<script lang="ts" setup>
const props = defineProps<{
  total?: number
  limit?: number
  pageChange: Function
}>()

const pageChange = (page: number) => {
  props.pageChange(page)
}
</script>
